package com.chezhujie.www.domain;

import com.xy.core.init.mysql.BaseEntity;
import com.xy.core.init.mysql.annotation.Column;
import com.xy.core.init.mysql.annotation.Entity;
import com.xy.core.init.mysql.annotation.Id;
import com.xy.core.init.mysql.annotation.Table;

import java.math.BigDecimal;
import java.util.Date;
/**
 * Created by 汤伟杰 on 2017/8/3.
 */
@Entity
@Table(name = "czj_usecoupon",describe = "使用的奖品（主要和订单相关的，包含红包、优惠券、优惠名额）")
public class Czjusecoupon extends BaseEntity{
    @Id
    @Column(length = 19)
    private String usecouponId;
    @Column(length = 50)
    private String orderno;
    @Column(length = 11)
    private String userinfoId;
    @Column(length = 2)
    private Integer awardtype;
    @Column(length = 19)
    private String couponId;
    @Column(length = 50)
    private String couponname;
    @Column(length = 10,precision = 2)
    private BigDecimal price;
    @Column
    private Date endTime;
    private Date endTimeStart;
    private Date endTimeEnd;

    public String getUsecouponId() {
        return usecouponId;
    }

    public void setUsecouponId(String usecouponId) {
        this.usecouponId = usecouponId;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public Integer getAwardtype() {
        return awardtype;
    }

    public void setAwardtype(Integer awardtype) {
        this.awardtype = awardtype;
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    public String getCouponname() {
        return couponname;
    }

    public void setCouponname(String couponname) {
        this.couponname = couponname;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTimeStart() {
        return endTimeStart;
    }

    public void setEndTimeStart(Date endTimeStart) {
        this.endTimeStart = endTimeStart;
    }

    public Date getEndTimeEnd() {
        return endTimeEnd;
    }

    public void setEndTimeEnd(Date endTimeEnd) {
        this.endTimeEnd = endTimeEnd;
    }

    public String getUserinfoId() {
        return userinfoId;
    }

    public void setUserinfoId(String userinfoId) {
        this.userinfoId = userinfoId;
    }
}
